package com.lyc.dao;

import com.lyc.entity.Color;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ColorMapper {
    int deleteByPrimaryKey(Integer colorId);

    int insert(Color record);

    int insertSelective(Color record);

    Color selectByPrimaryKey(Integer colorId);

    int updateByPrimaryKeySelective(Color record);

    int updateByPrimaryKey(Color record);

    int selectAllCount();

    List<Color> selectByPage(@Param("start") int start,@Param("pageSize") int pageSize);

    void deleteProductByColorId(Integer colorId);

    List<Color> selectAll();

    void insertBatchByColors(@Param("list") List<Color> list, @Param("pid") Integer pid);

    void insertBatchByIds(@Param("list") List<Integer> ids,@Param("pid") Integer pid);
}